package net.ddns.heroli.pojo;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Transient;
import org.beetl.sql.core.annotatoin.ColumnIgnore;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.UpdateIgnore;
import javax.persistence.Table;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.com.gzheroli.bfw.pojo.base.TSUser;
/**   
 * @Title: Entity
 * @Description: 
 * @author 李长荣
 * @date 2017-12-24 18:02:38
 * @version V1.0   
 *
 */
 @Table(name="t_b_order")
public class TBOrder implements java.io.Serializable {

  @Column(name="ID")
  private java.lang.String id;//订单id

  @Column(name="ORDER_SN")
  private java.lang.String orderSn;//订单编号

  @Column(name="USER_ID")
  private java.lang.Integer userId;//用户id

  @Column(name="ORDER_STATUS")
  private java.lang.Integer orderStatus;//订单状态

  @Column(name="SHIPPING_STATUS")
  private java.lang.Integer shippingStatus;//发货状态

  @Column(name="PAY_STATUS")
  private java.lang.Integer payStatus;//支付状态

  @Column(name="CONSIGNEE")
  private java.lang.String consignee;//收货人

  @Column(name="COUNTRY")
  private java.lang.String country;//国家

  @Column(name="PROVINCE")
  private java.lang.String province;//省份

  @Column(name="CITY")
  private java.lang.String city;//城市

  @Column(name="DISTRICT")
  private java.lang.String district;//县区

  @Column(name="STREET")
  private java.lang.String street;//乡镇

  @Column(name="ADDRESS")
  private java.lang.String address;//地址

  @Column(name="ZIPCODE")
  private java.lang.String zipcode;//邮政编码

  @Column(name="MOBILE")
  private java.lang.String mobile;//手机

  @Column(name="EMAIL")
  private java.lang.String email;//邮件

  @Column(name="SHIPPING_CODE")
  private java.lang.String shippingCode;//物流code

  @Column(name="SHIPPING_NAME")
  private java.lang.String shippingName;//物流名称

  @Column(name="PAY_CODE")
  private java.lang.String payCode;//支付code

  @Column(name="PAY_NAME")
  private java.lang.String payName;//支付方式名称

  @Column(name="INVOICE_TITLE")
  private java.lang.String invoiceTitle;//发票抬头

  @Column(name="TAXPAYER")
  private java.lang.String taxpayer;//纳税人识别号

  @Column(name="GOODS_PRICE")
  private BigDecimal goodsPrice;//商品总价

  @Column(name="SHIPPING_PRICE")
  private BigDecimal shippingPrice;//邮费

  @Column(name="USER_MONEY")
  private BigDecimal userMoney;//使用余额

  @Column(name="COUPON_PRICE")
  private BigDecimal couponPrice;//优惠券抵扣

  @Column(name="INTEGRAL")
  private java.lang.Integer integral;//使用积分

  @Column(name="INTEGRAL_MONEY")
  private BigDecimal integralMoney;//使用积分抵多少钱

  @Column(name="ORDER_AMOUNT")
  private BigDecimal orderAmount;//应付款金额

  @Column(name="TOTAL_AMOUNT")
  private BigDecimal totalAmount;//订单总价

  @Column(name="ADD_TIME")
  private java.util.Date addTime;//下单时间

  @Column(name="SHIPPING_TIME")
  private java.util.Date shippingTime;//最后新发货时间

  @Column(name="CONFIRM_TIME")
  private java.util.Date confirmTime;//收货确认时间

  @Column(name="PAY_TIME")
  private java.lang.Integer payTime;//支付时间

  @Column(name="TRANSACTION_ID")
  private java.lang.String transactionId;//第三方平台交易流水号

  @Column(name="PROM_ID")
  private java.lang.String promId;//活动Id

  @Column(name="PROM_TYPE")
  private java.lang.Integer promType;//订单类型：0普通订单4预售订单5虚拟订单6拼团订单

  @Column(name="ORDER_PROM_ID")
  private java.lang.Integer orderPromId;//活动id

  @Column(name="ORDER_PROM_AMOUNT")
  private BigDecimal orderPromAmount;//活动优惠金额

  @Column(name="DISCOUNT")
  private BigDecimal discount;//价格调整

  @Column(name="USER_NOTE")
  private java.lang.String userNote;//用户备注

  @Column(name="ADMIN_NOTE")
  private java.lang.String adminNote;//管理员备注

  @Column(name="PARENT_SN")
  private java.lang.String parentSn;//父单单号

  @Column(name="IS_DISTRIBUT")
  private java.lang.Integer isDistribut;//是否已分成0未分成1已分成

  @Column(name="PAID_MONEY")
  private BigDecimal paidMoney;//订金

  @Column(name="DELETED")
  private java.lang.Integer deleted;//用户假删除标识,1:删除,0未删除

  @Column(name="UPDATE_BY")
  private java.lang.String updateBy;//最后修改人id

  @Column(name="UPDATE_TIME")
  private java.util.Date updateTime;//最后修改时间

  @Column(name="UPDATE_BY_NAME")
  private java.lang.String updateByName;//最后修改人名字

  @Column(name="STATUS")
  private java.lang.String status;//状态 0:禁用 1:启用

  /**
	 *方法: 取得id
	 *return: id  订单id
	 */
  public java.lang.String getId() {
      return this.id;
  }
  public void setId(java.lang.String id) {
      this.id = id;
  }

  /**
	 *方法: 取得orderSn
	 *return: orderSn  订单编号
	 */
  public java.lang.String getOrderSn() {
      return this.orderSn;
  }
  public void setOrderSn(java.lang.String orderSn) {
      this.orderSn = orderSn;
  }

  /**
	 *方法: 取得userId
	 *return: userId  用户id
	 */
  public java.lang.Integer getUserId() {
      return this.userId;
  }
  public void setUserId(java.lang.Integer userId) {
      this.userId = userId;
  }

  /**
	 *方法: 取得orderStatus
	 *return: orderStatus  订单状态
	 */
  public java.lang.Integer getOrderStatus() {
      return this.orderStatus;
  }
  public void setOrderStatus(java.lang.Integer orderStatus) {
      this.orderStatus = orderStatus;
  }

  /**
	 *方法: 取得shippingStatus
	 *return: shippingStatus  发货状态
	 */
  public java.lang.Integer getShippingStatus() {
      return this.shippingStatus;
  }
  public void setShippingStatus(java.lang.Integer shippingStatus) {
      this.shippingStatus = shippingStatus;
  }

  /**
	 *方法: 取得payStatus
	 *return: payStatus  支付状态
	 */
  public java.lang.Integer getPayStatus() {
      return this.payStatus;
  }
  public void setPayStatus(java.lang.Integer payStatus) {
      this.payStatus = payStatus;
  }

  /**
	 *方法: 取得consignee
	 *return: consignee  收货人
	 */
  public java.lang.String getConsignee() {
      return this.consignee;
  }
  public void setConsignee(java.lang.String consignee) {
      this.consignee = consignee;
  }

  /**
	 *方法: 取得country
	 *return: country  国家
	 */
  public java.lang.String getCountry() {
      return this.country;
  }
  public void setCountry(java.lang.String country) {
      this.country = country;
  }

  /**
	 *方法: 取得province
	 *return: province  省份
	 */
  public java.lang.String getProvince() {
      return this.province;
  }
  public void setProvince(java.lang.String province) {
      this.province = province;
  }

  /**
	 *方法: 取得city
	 *return: city  城市
	 */
  public java.lang.String getCity() {
      return this.city;
  }
  public void setCity(java.lang.String city) {
      this.city = city;
  }

  /**
	 *方法: 取得district
	 *return: district  县区
	 */
  public java.lang.String getDistrict() {
      return this.district;
  }
  public void setDistrict(java.lang.String district) {
      this.district = district;
  }

  /**
	 *方法: 取得street
	 *return: street  乡镇
	 */
  public java.lang.String getStreet() {
      return this.street;
  }
  public void setStreet(java.lang.String street) {
      this.street = street;
  }

  /**
	 *方法: 取得address
	 *return: address  地址
	 */
  public java.lang.String getAddress() {
      return this.address;
  }
  public void setAddress(java.lang.String address) {
      this.address = address;
  }

  /**
	 *方法: 取得zipcode
	 *return: zipcode  邮政编码
	 */
  public java.lang.String getZipcode() {
      return this.zipcode;
  }
  public void setZipcode(java.lang.String zipcode) {
      this.zipcode = zipcode;
  }

  /**
	 *方法: 取得mobile
	 *return: mobile  手机
	 */
  public java.lang.String getMobile() {
      return this.mobile;
  }
  public void setMobile(java.lang.String mobile) {
      this.mobile = mobile;
  }

  /**
	 *方法: 取得email
	 *return: email  邮件
	 */
  public java.lang.String getEmail() {
      return this.email;
  }
  public void setEmail(java.lang.String email) {
      this.email = email;
  }

  /**
	 *方法: 取得shippingCode
	 *return: shippingCode  物流code
	 */
  public java.lang.String getShippingCode() {
      return this.shippingCode;
  }
  public void setShippingCode(java.lang.String shippingCode) {
      this.shippingCode = shippingCode;
  }

  /**
	 *方法: 取得shippingName
	 *return: shippingName  物流名称
	 */
  public java.lang.String getShippingName() {
      return this.shippingName;
  }
  public void setShippingName(java.lang.String shippingName) {
      this.shippingName = shippingName;
  }

  /**
	 *方法: 取得payCode
	 *return: payCode  支付code
	 */
  public java.lang.String getPayCode() {
      return this.payCode;
  }
  public void setPayCode(java.lang.String payCode) {
      this.payCode = payCode;
  }

  /**
	 *方法: 取得payName
	 *return: payName  支付方式名称
	 */
  public java.lang.String getPayName() {
      return this.payName;
  }
  public void setPayName(java.lang.String payName) {
      this.payName = payName;
  }

  /**
	 *方法: 取得invoiceTitle
	 *return: invoiceTitle  发票抬头
	 */
  public java.lang.String getInvoiceTitle() {
      return this.invoiceTitle;
  }
  public void setInvoiceTitle(java.lang.String invoiceTitle) {
      this.invoiceTitle = invoiceTitle;
  }

  /**
	 *方法: 取得taxpayer
	 *return: taxpayer  纳税人识别号
	 */
  public java.lang.String getTaxpayer() {
      return this.taxpayer;
  }
  public void setTaxpayer(java.lang.String taxpayer) {
      this.taxpayer = taxpayer;
  }

  /**
	 *方法: 取得goodsPrice
	 *return: goodsPrice  商品总价
	 */
  public BigDecimal getGoodsPrice() {
      return this.goodsPrice;
  }
  public void setGoodsPrice(BigDecimal goodsPrice) {
      this.goodsPrice = goodsPrice;
  }

  /**
	 *方法: 取得shippingPrice
	 *return: shippingPrice  邮费
	 */
  public BigDecimal getShippingPrice() {
      return this.shippingPrice;
  }
  public void setShippingPrice(BigDecimal shippingPrice) {
      this.shippingPrice = shippingPrice;
  }

  /**
	 *方法: 取得userMoney
	 *return: userMoney  使用余额
	 */
  public BigDecimal getUserMoney() {
      return this.userMoney;
  }
  public void setUserMoney(BigDecimal userMoney) {
      this.userMoney = userMoney;
  }

  /**
	 *方法: 取得couponPrice
	 *return: couponPrice  优惠券抵扣
	 */
  public BigDecimal getCouponPrice() {
      return this.couponPrice;
  }
  public void setCouponPrice(BigDecimal couponPrice) {
      this.couponPrice = couponPrice;
  }

  /**
	 *方法: 取得integral
	 *return: integral  使用积分
	 */
  public java.lang.Integer getIntegral() {
      return this.integral;
  }
  public void setIntegral(java.lang.Integer integral) {
      this.integral = integral;
  }

  /**
	 *方法: 取得integralMoney
	 *return: integralMoney  使用积分抵多少钱
	 */
  public BigDecimal getIntegralMoney() {
      return this.integralMoney;
  }
  public void setIntegralMoney(BigDecimal integralMoney) {
      this.integralMoney = integralMoney;
  }

  /**
	 *方法: 取得orderAmount
	 *return: orderAmount  应付款金额
	 */
  public BigDecimal getOrderAmount() {
      return this.orderAmount;
  }
  public void setOrderAmount(BigDecimal orderAmount) {
      this.orderAmount = orderAmount;
  }

  /**
	 *方法: 取得totalAmount
	 *return: totalAmount  订单总价
	 */
  public BigDecimal getTotalAmount() {
      return this.totalAmount;
  }
  public void setTotalAmount(BigDecimal totalAmount) {
      this.totalAmount = totalAmount;
  }

  /**
	 *方法: 取得addTime
	 *return: addTime  下单时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
  public java.util.Date getAddTime() {
      return this.addTime;
  }
  public void setAddTime(java.util.Date addTime) {
      this.addTime = addTime;
  }

  /**
	 *方法: 取得shippingTime
	 *return: shippingTime  最后新发货时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
  public java.util.Date getShippingTime() {
      return this.shippingTime;
  }
  public void setShippingTime(java.util.Date shippingTime) {
      this.shippingTime = shippingTime;
  }

  /**
	 *方法: 取得confirmTime
	 *return: confirmTime  收货确认时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
  public java.util.Date getConfirmTime() {
      return this.confirmTime;
  }
  public void setConfirmTime(java.util.Date confirmTime) {
      this.confirmTime = confirmTime;
  }

  /**
	 *方法: 取得payTime
	 *return: payTime  支付时间
	 */
  public java.lang.Integer getPayTime() {
      return this.payTime;
  }
  public void setPayTime(java.lang.Integer payTime) {
      this.payTime = payTime;
  }

  /**
	 *方法: 取得transactionId
	 *return: transactionId  第三方平台交易流水号
	 */
  public java.lang.String getTransactionId() {
      return this.transactionId;
  }
  public void setTransactionId(java.lang.String transactionId) {
      this.transactionId = transactionId;
  }

  /**
	 *方法: 取得promId
	 *return: promId  活动Id
	 */
  public java.lang.String getPromId() {
      return this.promId;
  }
  public void setPromId(java.lang.String promId) {
      this.promId = promId;
  }

  /**
	 *方法: 取得promType
	 *return: promType  订单类型：0普通订单4预售订单5虚拟订单6拼团订单
	 */
  public java.lang.Integer getPromType() {
      return this.promType;
  }
  public void setPromType(java.lang.Integer promType) {
      this.promType = promType;
  }

  /**
	 *方法: 取得orderPromId
	 *return: orderPromId  活动id
	 */
  public java.lang.Integer getOrderPromId() {
      return this.orderPromId;
  }
  public void setOrderPromId(java.lang.Integer orderPromId) {
      this.orderPromId = orderPromId;
  }

  /**
	 *方法: 取得orderPromAmount
	 *return: orderPromAmount  活动优惠金额
	 */
  public BigDecimal getOrderPromAmount() {
      return this.orderPromAmount;
  }
  public void setOrderPromAmount(BigDecimal orderPromAmount) {
      this.orderPromAmount = orderPromAmount;
  }

  /**
	 *方法: 取得discount
	 *return: discount  价格调整
	 */
  public BigDecimal getDiscount() {
      return this.discount;
  }
  public void setDiscount(BigDecimal discount) {
      this.discount = discount;
  }

  /**
	 *方法: 取得userNote
	 *return: userNote  用户备注
	 */
  public java.lang.String getUserNote() {
      return this.userNote;
  }
  public void setUserNote(java.lang.String userNote) {
      this.userNote = userNote;
  }

  /**
	 *方法: 取得adminNote
	 *return: adminNote  管理员备注
	 */
  public java.lang.String getAdminNote() {
      return this.adminNote;
  }
  public void setAdminNote(java.lang.String adminNote) {
      this.adminNote = adminNote;
  }

  /**
	 *方法: 取得parentSn
	 *return: parentSn  父单单号
	 */
  public java.lang.String getParentSn() {
      return this.parentSn;
  }
  public void setParentSn(java.lang.String parentSn) {
      this.parentSn = parentSn;
  }

  /**
	 *方法: 取得isDistribut
	 *return: isDistribut  是否已分成0未分成1已分成
	 */
  public java.lang.Integer getIsDistribut() {
      return this.isDistribut;
  }
  public void setIsDistribut(java.lang.Integer isDistribut) {
      this.isDistribut = isDistribut;
  }

  /**
	 *方法: 取得paidMoney
	 *return: paidMoney  订金
	 */
  public BigDecimal getPaidMoney() {
      return this.paidMoney;
  }
  public void setPaidMoney(BigDecimal paidMoney) {
      this.paidMoney = paidMoney;
  }

  /**
	 *方法: 取得deleted
	 *return: deleted  用户假删除标识,1:删除,0未删除
	 */
  public java.lang.Integer getDeleted() {
      return this.deleted;
  }
  public void setDeleted(java.lang.Integer deleted) {
      this.deleted = deleted;
  }

  /**
	 *方法: 取得updateBy
	 *return: updateBy  最后修改人id
	 */
  public java.lang.String getUpdateBy() {
      return this.updateBy;
  }
  public void setUpdateBy(java.lang.String updateBy) {
      this.updateBy = updateBy;
  }

  /**
	 *方法: 取得updateTime
	 *return: updateTime  最后修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
  public java.util.Date getUpdateTime() {
      return this.updateTime;
  }
  public void setUpdateTime(java.util.Date updateTime) {
      this.updateTime = updateTime;
  }

  /**
	 *方法: 取得updateByName
	 *return: updateByName  最后修改人名字
	 */
  public java.lang.String getUpdateByName() {
      return this.updateByName;
  }
  public void setUpdateByName(java.lang.String updateByName) {
      this.updateByName = updateByName;
  }

  /**
	 *方法: 取得status
	 *return: status  状态 0:禁用 1:启用
	 */
  public java.lang.String getStatus() {
      return this.status;
  }
  public void setStatus(java.lang.String status) {
      this.status = status;
  }

    public String toString(TBOrder rm,TSUser user) {
	  return "";
  }
	
}